import { defineAsyncComponent } from 'vue'

//引入路由文件
const Home = defineAsyncComponent(()=> import("@/pages/index"));
const Test = defineAsyncComponent(()=> import("@/pages/test"));


export default [
    {path: "/", component: Home},
    {path: "/test", component: Test, 
        meta: { 
            //路由可配置不同的国际化messages
            i18n: {
                cn: {fast: "我来自路由配置的message"},
                en: {fast: "form router meta message"},
            }
        }
    }
]